//
//  CommonUtil.h
//  Stock
//
//  Created by blacksun on 11-6-5.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import "StockContext.h"



@interface CommonUtil : NSObject {
    
}

+(id)shareInstance;
-(NSString *)pathOfResouceInMainBundle:(NSString *)fullFileName;
-(NSString *)pathOfResouceInDocumentDirectory:(NSString *)fullFileName;
-(NSString *)pathOfResourceInTemporaryDirectory:(NSString *)fullFileName;

-(NSString *)pathOfStockImageFile:(NSString *)imageName;

-(void)saveData:(NSData *)data inDocumentDirectoryWithFileName:(NSString *)fileName;
-(void)copyMapEntries:(NSDictionary *)aMap toObject:(NSObject *)target;

-(UIImage *)addText:(UIImage *)img text:(NSString *)text;
-(UIImage *)buildImageWithView:(UIView *)aView;
@end
